public class BitShift {
    public static void main(String[] args) {
        int a = 1024;
        System.out.println(a>>1);
        System.out.println(a<<1);
        System.out.println(~a);
        int b = -1024;
        System.out.println(b>>1);
        System.out.println(b<<1);

        System.out.println(~b);
    }
}
